package com.example.demo.service;

import com.example.demo.entity.Instrument;

import java.util.List;

public interface InstrumentService {

    void addInstrument(Instrument instrument);

    void updateInstrument(Instrument instrument);

    void deleteInstrument(Integer instrumentId);

    Instrument getInstrumentById(Integer instrumentId);

    List<Instrument> getAllInstruments();

    List<Instrument> searchInstruments(String name);

    List<Instrument> getHotInstruments();

    // 增加浏览量
    void incrementViewCount(Integer id);
}